/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const staffRouter = {
  path: '/staff',
  component: Layout,
  redirect: '/staff/index',
  name: 'Staff',
  meta: {
    title: '员工管理',
    icon: 'table'
  },
  children: [
    {
      path: '/staff/index',
      component: () => import('@/pages/staff/index'),
      name: 'StaffTable',
      meta: { title: '员工列表', icon: 'table' }
    },
    {
      path: '/staff/add',
      component: () => import('@/pages/addStaff/index'),
      name: 'InlineEditTable',
      meta: { title: '新增员工', icon: 'table' }
    },
    {
      path: '/staff/change',
      component: () => import('@/pages/change_staff_pwd/index'),
      name: 'ComplexTable',
      meta: { title: '修改密码', icon: 'edit' }
    }
  ]
}
export default staffRouter
